from rest_framework.serializers import ModelSerializer
from .models import *
from rest_framework import serializers


class GradeModelSerializer(ModelSerializer):
    class Meta:
        model = Grade
        fields = '__all__'


class StudentModelSerializer(ModelSerializer):
    class Meta:
        model = Student
        fields = '__all__'


class ShowStudentModelSerializer(ModelSerializer):
    grade = serializers.StringRelatedField()

    class Meta:
        model = Student
        fields = '__all__'
